package pers.duorhs.common.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author Duorhs
 * @date 2022/5/7 11:23
 */
@Data
@ConfigurationProperties(SocketProperties.PREFIX)
public class SocketProperties {

    public static final String PREFIX = "socket";

    /**
     * host在本地测试可以设置为localhost或者本机IP，在Linux服务器跑可换成服务器IP
     */
    private String host;

    /**
     * socket端口
     */
    private Integer port;
}
